package com.changgou.search.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("search")
@RequestMapping("/sku/es")
public interface SkuEsFeign {

    /**
     * 根据搜索条件搜索商品数据
     * @param searchMap
     * @return  搜索结果
     */
    @GetMapping
    Map search(@RequestParam(required = false) Map<String,String> searchMap);
}
